package cn.ainit.bj.AutorSubmission;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.ainit.bj.AutorSubmission.entity.BjAutorSubmission;
@Service   
public class AutorSubmissionServiceImpl implements AutorSubmissionService {
	//这个一定要写
	private AutorSubmissionDao autorSubmissionDao;
	@Resource  //这个resource 一定要写在set方法 
	public void setAutorSubmissionDao(AutorSubmissionDao AutorSubmission) {
		this.autorSubmissionDao = AutorSubmission;
	}
	
	@Override
	public boolean saveAutorSubmission(BjAutorSubmission bjAutorSubmission) throws Exception {
		return this.autorSubmissionDao.saveAutorSubmission(bjAutorSubmission);
	}

	@Override
	public boolean updAutorSubmissionSave(BjAutorSubmission bjAutorSubmission) throws Exception {
		return this.autorSubmissionDao.updAutorSubmissionSave(bjAutorSubmission);
	}
	@Override
	public boolean findAutorSubmission(String JIAOGAO_ID) throws Exception {
		return this.autorSubmissionDao.findAutorSubmission(JIAOGAO_ID);
	}
}
